<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div id="listReMessagePage" class="art">
	<%@include file="../include/tab_message.jsp" %>
    <div class="bd">
    	<s:if test="#request.pageView.totalRecord">
     	<ul class="receive_list">
     		<s:iterator value="#request.pageView.records" id="entity">
     			<li>
     				<p class="sendto"><span><a href="javascript:void(0)">${entity.fromName}</a></span></p>
                  <h3>${entity.title}</h3>
                  <p>
                   <s:if test="#entity.reState == 0">
                   	<a href="javascript:void(0)" onclick="readMessage(this,${entity.id});">${entity.content}</a>
                   </s:if>
                   <s:else>
                   	<a href="javascript:void(0)">${entity.content}</a>
                   </s:else>
                  </p>
                  <p><a class="rep" href="javascript:void(0)" onclick="replyMessage(${entity.id}, ${entity.source});">回复</a>
                  <a class="del" href="javascript:void(0)" onclick="deleteMessage(${entity.id})">删除</a></p>
                  <span class="time">${entity.formatTime}</span>
                  <div id="${entity.id}" style="display:none"></div>
                 </li>
     		</s:iterator>
         </ul>
    	</s:if>
    	<s:else>
			没有记录
		</s:else>	
    </div>
	<div class="page"><s:include value="/share/page.jsp" /></div>
</div>
